home *** CD-ROM | disk | FTP | other *** search
- Path: newsjunkie.ans.net!philabs!usenet
- From: abf@philabs.research.philips.com (Andrew Feldman)
- Newsgroups: comp.lang.c++
- Subject: Re: Printing output on TC 3.1 c++
- Date: Thu, 08 Feb 1996 00:22:18 GMT
- Organization: Philips Laboratories, Briarcliff, NY 10510
- Distribution: inet
- Message-ID: <4fb525$i2o@philabs.research.philips.com>
- References: <4fargr$3sd@geraldo.cc.utexas.edu>
- NNTP-Posting-Host: idrpc5.philabs.research.philips.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- disoguy@mail.utexas.edu (Ajay Kapoor) wrote:
-
- >Sorry to bother everyone with this question but it's an emergency:
-
- >How can one print the output on TC 3.1 ?
-
- >thanks
-
- I tried replying by e-mai, but got a User Unknown. I don't think it's
- worth an article, but...
-
- Try stdout = stdprn in the first line of main(), but save the old
- value of stdout and reset it in the end. If doesn't work, run your
- program from the DOS prompt:
-
- C>FOO.EXE >FOO.OUT
-
- (assuming that FOO.EXE is your program). Then the whole output will be
- in the file FOO.OUT. Just print it. If your program reads something
- from the keyboard and you also have to print the input, you are in
- trouble -- I don't know any software to help you. Except something I
- wrote myself, since I had the same problem recently. If it is REALLY
- an emergency, write to andrew@ieor.columbia.edu (this is NOT where
- this letter came from).
-
- Andrew Feldman.
-
-
-